<? if(!defined('IN_TIPASK')) exit('Access Denied'); include template('header'); ?>
<div class="content">
    <div class="uleft">
        <div class="tximg"><img width="100px" height="100px" src="<?=$user['avatar']?>" alt="<?=$user['username']?>" title="<?=$user['username']?>"></div>
        <div class="txname">
            <?=$user['username']?>
            <? if($user['islogin']) { ?>            <img src="<?=SITE_URL?>css/default/online.gif" align="absmiddle" title="当前在线" alt="当前在线"/>
            <? } else { ?>            <img src="<?=SITE_URL?>css/default/outline.gif" align="absmiddle" title="当前离线" alt="当前离线"/>
            <? } ?>        </div>
        <div class="clr"></div>
        <div class="list">
            <h1 class="on"><a title="我的主页" target="_top" href="<?=SITE_URL?>?user/score.html"><img width="16" height="16" align="absmiddle" src="<?=SITE_URL?>css/default/myhome.gif" /> &nbsp;我的主页</a></h1>
            <h1><a title="我的问答" target="_top" href="<?=SITE_URL?>?user/ask/2.html"><img width="16px" height="15px" align="absmiddle" src="<?=SITE_URL?>css/default/myanswer.gif" /> &nbsp;我的问答</a></h1>            
            <h1 class=""><a title="我的消息" target="_top" href="<?=SITE_URL?>?message/new.html"><img width="16px" height="16px" align="absmiddle" src="<?=SITE_URL?>css/default/mymsg.gif" /> &nbsp;我的消息</a></h1>
            <h1 class=""><a title="我收藏的问题" target="_top" href="<?=SITE_URL?>?user/favorite.html"><img width="14" height="15" align="absmiddle" src="<?=SITE_URL?>css/default/mycollect.gif" /> &nbsp;我的收藏</a></h1>
        </div>
    </div>
    <div class="uright">
        <div class="miaoshu">
            <img width="12px" height="12px" align="texttop" src="<?=SITE_URL?>css/default/tip1.gif" />您当前的财富为：<font color="#FC6603"><?=$user['credit2']?></font>,目前财富充值汇率为<font color="green">[1元=<?=$setting['recharge_rate']?>财富值]</font>。
        </div>
        <div class="grxx">
            <form  action="<?=SITE_URL?>?ebank/aliapytransfer.html" method="post" onsubmit="return check_form();">
                <div class="listx">
                    <h3>您的充值金额</h3>

                    <div class="jutix"><input type="text" class="input4" value="" id="money" name="money" /> 元</div>
                </div>
                <div class="clr"></div>
                <div class="shur2"><input type="submit" class="button4" value="确认充值" name="submit" />
                </div>
            </form>
        </div>
    </div>
</div>
<div class="clr"></div>
<script type="text/javascript">
    function check_form(){
        var money_reg = /\d{1,4}/;
        var money = $("#money").val();
        if('' == money || !money_reg.test(money) || money>20000 ||  money<=0){
            alert("输入充值金额不正确!充值金额必须为整数，且单次充值不超过20000元!");
            return false;
        }
        return true;
    }
</script>
<? include template('footer'); ?>
